function getQueryVariable(variable) {
  var query = window.location.href
  var vars = query.split('?')
  for (var i = 0; i < vars.length; i++) {
    var pair = vars[i].split('=')
    if (pair[0] == variable) {
      return pair[1]
    }
  }
  return false
}
window.cx = decodeURI(getQueryVariable('cx'))
window.cj = decodeURI(getQueryVariable('cj'))

//定时器时间设置
window.config_time = 1000 * 60 * 5 //产线生产大屏 五分钟刷新一次
window.config_time1 = 1000 * 60 * 2 //安灯报警大屏 五分钟刷新一次
